Change in openvpn[master]: Remove support for compression on send
A message that is not in the archive (sent off-list or not yet received): gerrit.1727014533000.I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to review the following change.
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes --allow-compression yes is an alias for --allow-compression asym and removes all resulting dead code.
---
M Changes.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
6 files changed, 19 insertions(+), 269 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/1
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
src/openvpn/comp-lz4.c +1 -119
137 lines not on this page · raw message
src/openvpn/comp.h +2 -1
@@ -33,7 +33,8 @@/* Compression flags */ #define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -129
148 lines not on this page · raw message
src/openvpn/options.c +7 -18
@@ -5715,17 +5715,10 @@ {if (comp_non_stub_enabled (info)) { -/* -* Check if already displayed the strong warning and enabled full -* compression -*/ -if (!(info->flags &COMP_F_ALLOW_COMPRESS )) - { -msg (M_WARN ,"WARNING: Compression for receiving enabled. " -"Compression has been used in the past to break encryption. " -"Sent packets are not compressed unless \"allow-compression yes\" " -"is also set." ); - } +msg (M_WARN ,"WARNING: Compression for receiving enabled. " +"Compression has been used in the past to break encryption. " +"Compression support is deprecated and we recommend to disable " +"it completely." ); } }
@@ -8435,18 +8428,14 @@ }else if (streq (p[1 ],"asym" )) { - options->comp.flags &= ~COMP_F_ALLOW_COMPRESS ; options->comp.flags |=COMP_F_ALLOW_ASYM ; }else if (streq (p[1 ],"yes" )) { -msg (M_WARN ,"WARNING: Compression for sending and receiving enabled. Compression has " -"been used in the past to break encryption. Allowing compression allows " -"attacks that break encryption. Using \"--allow-compression yes\" is " -"strongly discouraged for common usage. See --compress in the manual " -"page for more information " ); +msg (M_WARN ,"DEPRECATED OPTION: \"--allow-compression yes\" has been removed. " +"We will use \"asym\" mode instead. See the manual page for more information." ); - options->comp.flags |=COMP_F_ALLOW_COMPRESS ; + options->comp.flags |=COMP_F_ALLOW_ASYM ; }else {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to look at the new patch set (#2).
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes --allow-compression yes is an alias for --allow-compression asym and removes all resulting dead code.
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 45 insertions(+), 331 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/2
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +14 -34
69 lines not on this page · raw message
src/openvpn/comp-lz4.c +1 -119
137 lines not on this page · raw message
src/openvpn/comp.h +3 -2
@@ -32,8 +32,9 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -129
148 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to look at the new patch set (#3).
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes --allow-compression yes is an alias for --allow-compression asym and removes all resulting dead code.
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 45 insertions(+), 338 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/3
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +14 -34
69 lines not on this page · raw message
src/openvpn/comp-lz4.c +1 -119
137 lines not on this page · raw message
src/openvpn/comp.h +3 -2
@@ -32,8 +32,9 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to look at the new patch set (#4).
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes --allow-compression yes is an alias for --allow-compression asym and removes all resulting dead code.
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 55 insertions(+), 319 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/4
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +14 -34
69 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +3 -2
@@ -32,8 +32,9 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to look at the new patch set (#5).
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 55 insertions(+), 319 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/5
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +14 -34
69 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +3 -2
@@ -32,8 +32,9 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
Change subject: Remove support for compression on send
......................................................................
Patch Set 5: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 30 Sep 2024 08:43:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH v5 1/1 Remove support for compression on send
In reply to a message not in the archiveWe can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/755
This mail reflects revision 5 of this Change.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
Changes.rst +6 -0
@@ -46,6 +46,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +14 -34
69 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +3 -2
@@ -32,8 +32,9 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/*Removed */ +/*#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only */ +/*#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only downlink is compressed but also uplink * / */ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -413,8 +413,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
Attention is currently required from: flichtenheld.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
Change subject: Remove support for compression on send
......................................................................
Patch Set 5:
(1 comment)
File doc/man-sections/protocol-options.rst:
http://gerrit.openvpn.net/c/openvpn/+/755/comment/6d770a24_39fb3a55 :
PS5, Line 34: it did enable compression for uplink packets, but OpenVPN never
can we name this outgoing packets, or to be sent or something? uplink on the server side is fairly ambiguous
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 06 Nov 2024 11:59:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
to look at the new patch set (#6).
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
The change is no longer submittable: Code-Review and checks~ChecksSubmitRule are unsatisfied now.
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 58 insertions(+), 327 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/6
Changes.rst +6 -0
@@ -59,6 +59,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +16 -42
88 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +4 -2
@@ -32,8 +32,10 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/* Removed +#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only * / +#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only incoming is compressed but also outgoing * / +*/ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -426,8 +426,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: cron2, plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
Change subject: Remove support for compression on send
......................................................................
Patch Set 6:
(1 comment)
File doc/man-sections/protocol-options.rst:
http://gerrit.openvpn.net/c/openvpn/+/755/comment/b768b45c_4a5924f4 :
PS5, Line 34: it did enable compression for uplink packets, but OpenVPN never
Quoted 1 line
can we name this
outgoingpackets, orto be sentor something?uplinkon the server side is f […]
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Fri, 08 Nov 2024 14:29:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
Change subject: Remove support for compression on send
......................................................................
Patch Set 6: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 08 Nov 2024 17:38:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH v6 1/1 Remove support for compression on send
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/755
This mail reflects revision 6 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
Changes.rst +6 -0
@@ -59,6 +59,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +16 -42
88 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +4 -2
@@ -32,8 +32,10 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/* Removed +#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only * / +#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only incoming is compressed but also outgoing * / +*/ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -426,8 +426,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
[Openvpn-devel] [PATCH applied] Re: Remove support for compression on send
Looked at the code, tested on server and client testbeds and GHA, everything seems to work as before :-) - I put my ACK on v6, but the real review was done by Arne in v5, so recording both ACKs (v5->v6 is documentation changes only).
I have not tested all variants of building with --disable-lzo or --disable-lz4, but from looking at the code and the BB results, I do not expect surprises from that side.
Your patch has been applied to the master branch.
commit 7f0214c9e2ca2991bd8affd5754bf9286b904bf7
Author: Frank Lichtenheld Date: Fri Nov 8 18:38:51 2024 +0100
Remove support for compression on send
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg29718.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#7) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg29718.html
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 58 insertions(+), 327 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/755/7
Changes.rst +6 -0
@@ -59,6 +59,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +16 -42
88 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +4 -2
@@ -32,8 +32,10 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/* Removed +#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only * / +#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only incoming is compressed but also outgoing * / +*/ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -426,8 +426,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 7
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/755?usp=email )
Change subject: Remove support for compression on send
......................................................................
Remove support for compression on send
We can't disable compression support on receive because that would break too many configurations out there. But we can remove the support for compressing outgoing traffic, it was disabled by default anyway.
Makes "--allow-compression yes" an alias for "--allow-compression asym" and removes all resulting dead code.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg29718.html
---
M Changes.rst
M doc/man-sections/protocol-options.rst
M src/openvpn/comp-lz4.c
M src/openvpn/comp.h
M src/openvpn/dco.c
M src/openvpn/lzo.c
M src/openvpn/options.c
7 files changed, 58 insertions(+), 327 deletions(-)
Changes.rst +6 -0
@@ -59,6 +59,12 @@ Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. +Compression on send + OpenVPN 2.7 will never compress data before sending. Decompression of + received data is still supported. + ``--allow-compression yes`` is now an alias for + ``--allow-compression asym``. + Overview of changes in 2.6 ==========================
doc/man-sections/protocol-options.rst +16 -42
88 lines not on this page · raw message
src/openvpn/comp-lz4.c +11 -100
140 lines not on this page · raw message
src/openvpn/comp.h +4 -2
@@ -32,8 +32,10 @@* outside of the USE_COMP define */ /* Compression flags */ -#define COMP_F_ADAPTIVE (1<<0)/* COMP_ALG_LZO only */ -#define COMP_F_ALLOW_COMPRESS (1<<1)/* not only downlink is compressed but also uplink */ +/* Removed +#define COMP_F_ADAPTIVE (1<<0) / * COMP_ALG_LZO only * / +#define COMP_F_ALLOW_COMPRESS (1<<1) / * not only incoming is compressed but also outgoing * / +*/ #define COMP_F_SWAP (1<<2)/* initial command byte is swapped with last byte in buffer to preserve payload alignment */ #define COMP_F_ADVERTISE_STUBS_ONLY (1<<3)/* tell server that we only support compression stubs */ #define COMP_F_ALLOW_STUB_ONLY (1<<4)/* Only accept stub compression, even with COMP_F_ADVERTISE_STUBS_ONLY
src/openvpn/dco.c +1 -2
@@ -426,8 +426,7 @@#if defined(USE_COMP )if (o->comp.alg !=COMP_ALG_UNDEF - || o->comp.flags &COMP_F_ALLOW_ASYM - || o->comp.flags &COMP_F_ALLOW_COMPRESS ) + || o->comp.flags &COMP_F_ALLOW_ASYM ) {msg (msglevel,"Note: '--allow-compression' is not set to 'no', disabling data channel offload." );
src/openvpn/lzo.c +2 -136
155 lines not on this page · raw message
src/openvpn/options.c +18 -45
105 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/755?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I402ba016b75cfcfec4fc8b2b01cc4eca7e2bcc60
Gerrit-Change-Number: 755
Gerrit-PatchSet: 7
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged